/**
 * 
 */
package org.dragonfire.dasm.directives;

import java.util.ArrayList;

import org.dragonfire.dasm.Command;
import org.dragonfire.dasm.Listing;
import org.dragonfire.dasm.DirectiveManager.Directive;

/**
 * <code>#NOLIST</code> is used to disable output to the listing file for
 * sections of code. It is included for legacy support for TASM and other
 * compilers that always produce listing files. DASM doesn't produce a listing
 * file unless specifically told to do so, so this directive is mostly
 * deprecated.<br />
 * <br />
 * Format: <br />
 * <code>#NOLIST</code><br />
 * <br />
 * Parameters:<br />
 * <i>none</i> <br />
 * <br />
 * Errors:<br />
 * <i>none</i>
 * 
 * @see org.dragonfire.dasm.directives.List
 * @author Darth Android
 * @version 2.0
 */
public class Nolist extends Directive {

	/**
	 * {@inheritDoc}
	 */
	@Override
	public ArrayList<Listing> pass1(Command c) {
		getPreprocessor().setDefaultListingVisibility(false);
		return null;
	}
}
